<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>

<div class="layui-fluid mt2">
	<form class="layui-form" lay-filter="example">

		<input type="hidden" name="id" th:value="${jazSysProject.id}">

		<div class="layui-form-item">
			<label class="layui-form-label">项目名称</label>
			<div class="layui-input-block">
				<input type="text" name="name" lay-verify="name" autocomplete="off" placeholder="请输入" class="layui-input" th:value="${jazSysProject.name}">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">显示顺序</label>
			<div class="layui-input-block">
				<input type="text" name="sort" lay-verify="sort" autocomplete="off" placeholder="请输入" class="layui-input" th:value="${jazSysProject.sort}">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">项目icon</label>
			<div class="layui-input-block">

				<div class="layui-upload-drag" id="drag">
					<i class="layui-icon"></i>
					<p>点击上传，或将文件拖拽到此处</p>
					<div id="uploadDemoView">
						<hr>

						<div th:if="${jazSysProject.icon != ''}">
							<img th:src="${jazSysProject.icon}" alt="上传成功后渲染" style="max-width: 196px">
						</div>

						<div th:if="${jazSysProject.icon == ''}">
							<img src="" alt="上传成功后渲染" style="max-width: 196px">
						</div>

					</div>
				</div>

				<input type="hidden" name="icon" lay-verify="picture" th:value="${jazSysProject.icon}">

			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">项目状态</label>
			<div class="layui-input-block">
				<input type="radio" name="status" value="0" title="启用">
				<input type="radio" name="status" value="1" title="禁用">
				<input type="hidden" id="status" th:value="${jazSysProject.status}">
			</div>
		</div>

		<div class="layui-form-item  layui-flow-more">
			<div class="layui-inline">
				<button type="submit" class="layui-btn" lay-submit lay-filter="submit">立即提交</button>
			</div>
		</div>

	</form>
</div>

<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/jazSysProject/edit.js">
</script>
</body>
</html>
